Little Lemon need to create
a database client so that they can interact with their database
using a python based application. You can help them by completing
the following tasks. Review the version of python
installed on your machine. Install a suitable integrated development
environment or IDE for python. And connect python to
the Little Lemon MySQL database. Let's take a few minutes
to review these tasks. As you just saw, the first task is to
identify which version of python is running on your machine. Open the command prompt and
type python -- version, to check which version of python is
running on your operating machine. If python is correctly installed
then python 3 should appear on your console screen. This means that you're
running python version 3. There should also be several numbers after
3 to indicate which iteration of python 3 you're running. Make sure that these numbers match the
most recent version on the python dot org website. If you search for python and
see a message that says, python is not recognized as an internal or
external command, then review your python installation or the relevant
documentation on the python website. Once you've installed python or confirmed
that you're running the correct version, you then need to choose
an IDE to run your code on. An IDE is software that you
can use to display your code. In this course, you'll use
the Jupyter IDE to demonstrate python. To install Jupyter type, python -n pip install jupyter
within your python environment. Then follow the Jupyter
installation process. Once you've installed Jupyter type,
Jupyter notebook to open a new instance of the Jupyter notebook,
to use within your default browser. The next task is to connect
python to your MySQL database. You can create the installation using a
purpose built python library called MySQL connector. This library is an API that provides
useful features for working with MySQL. The MySQL connector must be installed
separately using a package installer called Pip. The Pip package is included with
the python software that you installed. Create a new notebook instance and
name it, configuring _mysql _connector. Then install the connector using Pip. To install the connector,
type an exclamation mark and Pip to call the package. Then type the install command. Next, type the name of the library
which is, mysql-connector -python. Make sure you type python
with a lowercase p. Then press shift and enter or
select run to execute the code. The final step is to check that your
environment has been correctly configured. Type import my sequel.connector
as connector and click run. If there's no output in the cell then the
library has been imported successfully. You should now know how to install and
configure your environment to help create and connect a database client
to Little Lemons database. If there's any parts of this lesson
that you need more guidance on, then you can review the specific
learning material in previous courses. Great work.